package cn.xfdzx.android.apps.shop.contract;

import cn.xfdzx.android.apps.shop.base.BaseView;
import cn.xfdzx.android.apps.shop.bean.AddAddressBeen;
import cn.xfdzx.android.apps.shop.bean.AgreementBeen;
import io.reactivex.Flowable;


/**
 * @author azheng
 * @date 2018/6/4.
 * Description：
 */

public interface AgreementContract {
    interface Model {
        Flowable<AgreementBeen> agreement(String type);
        Flowable<AgreementBeen> userAgreement();
        Flowable<AgreementBeen> privacyAgreement();
        Flowable<AgreementBeen> serviceAgreement();

    }

    interface View extends BaseView {
        @Override
        void showLoading();

        @Override
        void hideLoading();

        @Override
        void onError(Throwable throwable);

        void onAgreementSuccess(AgreementBeen bean);
    }

    interface Presenter {
        /**
         *
         */
        void agreement(String type);

        /**用户协议*/
        void userAgreement();
        /**隐私协议*/
        void privacyAgreement();
        /**商家服务协议*/
        void serviceAgreement();
    }
}
